#include "log.h"
#include "ILayoutAwareObject.h"

WebAggregator::dataGrabber::ILayoutAwareObject::ILayoutAwareObject(WebAggregator::dataGrabber::ILayoutObjectCollection* collection)
{
	FILE_LOG(logDEBUG1) << "Entry: WebAggregator::dataGrabber::ILayoutAwareObject::ILayoutAwareObject(WebAggregator::dataGrabber::ILayoutObjectCollection* collection)";

	col = collection;

	FILE_LOG(logDEBUG1) << "Exit: WebAggregator::dataGrabber::ILayoutAwareObject::ILayoutAwareObject(WebAggregator::dataGrabber::ILayoutObjectCollection* collection)";
}

WebAggregator::dataGrabber::ILayoutAwareObject* WebAggregator::dataGrabber::ILayoutAwareObject::neighbor_left()
{
	FILE_LOG(logDEBUG1) << "Entry: WebAggregator::dataGrabber::ILayoutAwareObject* WebAggregator::dataGrabber::ILayoutAwareObject::neighbor_left()";


	FILE_LOG(logDEBUG1) << "Exit: WebAggregator::dataGrabber::ILayoutAwareObject* WebAggregator::dataGrabber::ILayoutAwareObject::neighbor_left()";

	return NULL;
}

WebAggregator::dataGrabber::ILayoutAwareObject* WebAggregator::dataGrabber::ILayoutAwareObject::neighbor_right()
{
	FILE_LOG(logDEBUG1) << "Entry: WebAggregator::dataGrabber::ILayoutAwareObject* WebAggregator::dataGrabber::ILayoutAwareObject::neighbor_right()";
	std::pair<int, int> pos = getPosition();

	FILE_LOG(logDEBUG1) << "Exit: WebAggregator::dataGrabber::ILayoutAwareObject* WebAggregator::dataGrabber::ILayoutAwareObject::neighbor_right()";

	return col->layoutAwareObjects.at(pos.second + 1);
}

WebAggregator::dataGrabber::ILayoutAwareObject* WebAggregator::dataGrabber::ILayoutAwareObject::neighbor_top()
{
    FILE_LOG(logDEBUG1) << "Entry: WebAggregator::dataGrabber::ILayoutAwareObject* WebAggregator::dataGrabber::ILayoutAwareObject::neighbor_top()";
    
    
        
    FILE_LOG(logDEBUG1) << "Exit: WebAggregator::dataGrabber::ILayoutAwareObject* WebAggregator::dataGrabber::ILayoutAwareObject::neighbor_top()";

	return NULL;
}

WebAggregator::dataGrabber::ILayoutAwareObject* WebAggregator::dataGrabber::ILayoutAwareObject::neighbor_down()
{
	FILE_LOG(logDEBUG1) << "Entry: WebAggregator::dataGrabber::ILayoutAwareObject* WebAggregator::dataGrabber::ILayoutAwareObject::neighbor_down()";


	FILE_LOG(logDEBUG1) << "Exit: WebAggregator::dataGrabber::ILayoutAwareObject* WebAggregator::dataGrabber::ILayoutAwareObject::neighbor_down()";

	return NULL;
}

WebAggregator::dataGrabber::ILayoutAwareObject* WebAggregator::dataGrabber::ILayoutAwareObject::selectLayoutObjectByXPath(std::string xpath)
{
	FILE_LOG(logDEBUG1) << "Entry: WebAggregator::dataGrabber::ILayoutAwareObject* WebAggregator::dataGrabber::ILayoutAwareObject::selectLayoutObjectByXPath(std::string xpath)";


	FILE_LOG(logDEBUG1) << "Exit: WebAggregator::dataGrabber::ILayoutAwareObject* WebAggregator::dataGrabber::ILayoutAwareObject::selectLayoutObjectByXPath(std::string xpath)";

	return NULL;
}